home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 418_04 / makefile.in < prev    next >
Encoding:
Makefile  |  1994-01-24  |  2.6 KB  |  82 lines

  1. CC = gcc
  2. EXTLIBS = -lm -lXi -lXext -lX11
  3. SHMLIBS = -lm -lXext -lX11
  4. NRMLIBS = -lm -lX11
  5.  
  6. LIBS = -lm -lXext -lX11
  7.  
  8. #CFLAGS_mips    = -O2
  9. #CFLAGS_sun4    = -O4
  10. #CFLAGS_sun3    = -O4 -f68881
  11. #CFLAGS_hp9000  = -O +bfpa
  12. #CFLAGS_sequent = -O -f1167
  13. #CFLAGS_gcc2.0  = -O2 -funroll-all-loops
  14. #CFLAGS_esv     = -O2 -Olimit 600 -systype bsd43
  15. #CFLAGS_gcc = -O -fomit-frame-pointer -fstrength-reduce -finline-functions
  16.  
  17. #CFLAGS = -O4 -I/usr/local/include
  18. CFLAGS = -g -O2 -finline-functions
  19. #LFLAGS = -s
  20. LFLAGS = -L/usr/lib/X11
  21.  
  22. # X Windows Release 5 Libraries
  23. # CFLAGS = $(C4FLAGS) -I/usr/local/share/X11R5/include
  24. # LFLAGS = $(L4FLAGS) -L/usr/local/lib/X11R5
  25.  
  26.  
  27. rasmol:        rasmol.o molecule.o transfor.o command.o abstree.o \
  28.         render.o x11win.o pixutils.o outfile.o
  29.         $(CC) -o rasmol $(LFLAGS) rasmol.o molecule.o transfor.o \
  30.         command.o abstree.o render.o x11win.o pixutils.o \
  31.         outfile.o $(LIBS)
  32.         chmod 755 rasmol
  33.  
  34. rasmol.o:    rasmol.c rasmol.h molecule.h transfor.h command.h \
  35.         abstree.h render.h graphics.h pixutils.h outfile.h
  36.         $(CC) -c $(CFLAGS) rasmol.c
  37.  
  38. molecule.o:    molecule.c molecule.h rasmol.h abstree.h transfor.h render.h
  39.         $(CC) -c $(CFLAGS) molecule.c
  40.  
  41. transfor.o:    transfor.c transfor.h rasmol.h molecule.h command.h \
  42.         render.h graphics.h
  43.         $(CC) -c $(CFLAGS) transfor.c
  44.  
  45. command.o:    command.c command.h rasmol.h tokens.h abstree.h \
  46.         molecule.h transfor.h render.h graphics.h pixutils.h \
  47.                 outfile.h
  48.         $(CC) -c $(CFLAGS) command.c
  49.  
  50. abstree.o:    abstree.c abstree.h rasmol.h molecule.h
  51.         $(CC) -c $(CFLAGS) abstree.c
  52.  
  53. render.o:    render.c render.h rasmol.h molecule.h transfor.h \
  54.         command.h graphics.h pixutils.h
  55.         $(CC) -c $(CFLAGS) render.c
  56.  
  57. x11win.o:    x11win.c graphics.h rasmol.h bitmaps.h command.h
  58.         $(CC) -c $(CFLAGS) x11win.c
  59.  
  60. pixutils.o:    pixutils.c pixutils.h rasmol.h render.h graphics.h
  61.         $(CC) -c $(CFLAGS) pixutils.c
  62.  
  63. outfile.o:    outfile.c outfile.h rasmol.h molecule.h command.h \
  64.         transfor.h render.h graphics.h pixutils.h
  65.         $(CC) -c $(CFLAGS) outfile.c
  66.  
  67. mips:        rasmol.c rasmol.h molecule.c molecule.h transfor.c \
  68.                 transfor.h command.c command.h abstree.c abstree.h \
  69.         render.c render.h x11win.c graphics.h pixutils.c \
  70.         pixutils.h outfile.c outfile.h tokens.h
  71.         cc -O3 -Olimit 600 -s -o rasmol -I/bsd43/usr/include \
  72.         -I/usr/include rasmol.c molecule.c transfor.c command.c \
  73.         abstree.c render.c x11win.c pixutils.c outfile.c $(EXTLIBS)
  74.         rm *.u
  75.  
  76. cflow:
  77.         cflow -I/usr/local/include rasmol.c molecule.c command.c \
  78.         transfor.c abstree.c render.c x11win.c pixutils.c outfile.c
  79.  
  80. clean:
  81.         rm -f rasmol *.o
  82.